package com.sfx.concurrent.demo.concurrent.ImmutableIssue;

import lombok.extern.slf4j.Slf4j;

import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-01-21
 * Time: 16:45
 */
@Slf4j(topic = "c.DateSafe")
public class DateSafe {
    public static void main(String[] args) {
        DateTimeFormatter stf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        for(int i =0;i<10;++i) {
            new Thread(()->{
                TemporalAccessor parse = stf.parse("2023-01-16");
                log.debug("{}",parse);
            }).start();
        }

    }
}
